package factoryMethodPattern.Pen;


/**
 * @program: course
 * @author: lsn
 * @create: 2024-03-24 20:33
 * @description: 笔芯抽象类
 */
public abstract class PenCore {
    public String color; // 笔芯颜色

    public PenCore(String color) {
        this.color = color;
    }

    public abstract void writeWord(String s);
}

